package com.yanxu.threadexception;

import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * @author 折戟沉沙铁未销
 * @version V1.0
 * @date 2025/1/18-2025
 * @Description: 这里用一句话描述这个类的作用
 */
public class MyUnCaughtException implements Thread.UncaughtExceptionHandler{
    public void uncaughtException(Thread t, Throwable e) {
        System.out.println("线程出现异常了，终止了!!!");
        System.out.println(Thread.currentThread().getName()+" 通知了监控系统进行了告警!!!");
    }
}